﻿<Window x:Class="NantAssistant.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="NAnt Assistant " Height="500" Width="525" KeyUp="Window_KeyUp" Loaded="Window_Loaded">
    <DockPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch" LastChildFill="True">
        <StackPanel Height="35" HorizontalAlignment="Stretch" VerticalAlignment="Top" Orientation="Horizontal" DockPanel.Dock="Top">
            <Label Content="NAnt File" Margin="25,3,3,3" VerticalAlignment="Center" />
            <TextBox Width="300" VerticalAlignment="Center" Margin="3" Name="txtNantFile" IsEnabled="False" />
            <Button Name="btnBrowse" Content="Browse" Click="btnBrowse_Click" VerticalAlignment="Center" Margin="5,3,3,3" Width="70"/>
        </StackPanel>
        <DockPanel VerticalAlignment="Center" Height="35" HorizontalAlignment="Stretch" LastChildFill="True" DockPanel.Dock="Bottom">
            <Button Name="btnRun" Content="Run" Click="btnRun_Click" VerticalAlignment="Center" Margin="5" Width="70" DockPanel.Dock="Right"/>
            <Button Name="btnSetNant" Content="Set NAnt" Click="btnSetNant_Click" Visibility="Hidden" VerticalAlignment="Center" Margin="5" Width="70" DockPanel.Dock="Right"/>
            <ProgressBar Name="pbProgress" Visibility="Hidden" Margin="5, 7, 25, 5" VerticalAlignment="Stretch" IsIndeterminate="True" />
        </DockPanel>
        <DockPanel LastChildFill="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="3">
            <TextBlock Name="txtStatus" Margin="20, 10, 20, 10" DockPanel.Dock="Top" />
            <TabControl HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="Tabs">
                <TabItem Header="Targets">
                    <ScrollViewer VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto">
                        <StackPanel Name="stkTargets" />
                    </ScrollViewer>
                </TabItem>
                <TabItem Header="Properties">
                    <StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="Add Property" Margin="5,5,25,5" VerticalAlignment="Center"/>
                            <TextBox Name="txtPropertyName" Margin="5" Width="100" />
                            <TextBlock Text="=" Margin="5" VerticalAlignment="Center"/>
                            <TextBox Name="txtPropertyValue" Margin="5" Width="100" />
                            <Button Click="btnAddProperty_Click" Name="btnAddProperty" Content="Add" VerticalAlignment="Center" Width="50" Margin="25,5,5,5"></Button>
                        </StackPanel>
                        <ScrollViewer VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto">
                            <StackPanel Name="stkProperties" />
                        </ScrollViewer>
                    </StackPanel>
                </TabItem>
                <TabItem Name="tabOutput" Header="Output">
                    <DockPanel LastChildFill="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5">
                        <Button Name="btnExport" Content="Export" Click="btnExport_Click" DockPanel.Dock="Bottom" Width="70" HorizontalAlignment="Center" Margin="0, 5, 0, 0"/>
                        <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderThickness="2" BorderBrush="Black" Name="brdrOutput">
                            <ScrollViewer VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" ScrollChanged="ScrollViewer_ScrollChanged">
                                <TextBox TextWrapping="Wrap" IsEnabled="False" Name="txtOutput" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  />
                            </ScrollViewer>
                        </Border>
                    </DockPanel>
                </TabItem>
            </TabControl>
        </DockPanel>
    </DockPanel>
</Window>
